#pragma once
#include "HashTable.h"

template<class K, class V>
class Unordered_Map
{
	struct MapKeyOfT
	{
		const K& operator()(const pair<K, V>& kv)
		{
			return kv.first;
		}
	};
public:
	bool insert(const pair<K, V>& kv)
	{
		return _mht.Insert(kv);
	}
private:
	hash_bucket::HashTable<K, pair<K, V>, MapKeyOfT> _mht;
};